package com.mrdeer.common.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mrdeer.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("t_user_role")
@ApiModel(value = "用户角色")
public class UserRole extends BaseEntity {
    private static final long serialVersionUID = -5793311073065987129L;

    @ApiModelProperty(value = "用户唯一ID")
    private String userId;

    @ApiModelProperty(value = "角色唯一ID")
    private String roleId;

    @TableField(exist = false)
    @ApiModelProperty(value = "角色名")
    private String roleName;
}
